package dth.entity;

import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.*;
@Entity
@Table(name="distributor")
public class Distributor {
	@Id
	@Column(columnDefinition="int",name="distributor_id")
	private int distributorId;
	@Column(columnDefinition="varchar",name="distributor_name")
	private String distributorName;
	@Column(columnDefinition="datetime",name="date_insert")
	private Date dateInsert;
	@OneToMany(mappedBy = "ownDistributor")
	private List<OrderSetupBox> orderSetupBoxs=new ArrayList<OrderSetupBox>();
	public int getDistributorId() {
		return distributorId;
	}
	public void setDistributorId(int distributorId) {
		this.distributorId = distributorId;
	}
	public String getDistributorName() {
		return distributorName;
	}
	public void setDistributorName(String distributorName) {
		this.distributorName = distributorName;
	}
	public Date getDateInsert() {
		return dateInsert;
	}
	public void setDateInsert(Date dateInsert) {
		this.dateInsert = dateInsert;
	}
	
	
}
